<template>
  <div class="topay">
    <top-nav title="我的评价" class="head"></top-nav>

    <div class="list" v-for="item in payArray" :key="item[0].id">
      <div class="list-img" >
        <img :src="item[0].pic" alt="" />
      </div>
      <div class="list-txt">
        <p>{{ item[0].goodsName }}</p>
        <p class="gray">{{ item[0].property }}</p>
        <p>{{ item[0].number }}</p>
        <!-- <ul>
          <li>
            <div class="red">￥{{obj.minPrice}}</div>
          <p>低价</p>
          </li>
          <li>
            <div class="gray">￥{{obj.originalPrice}}</div>
            <p class="gray">原价</p>
          </li>
        </ul> -->

      </div>
    </div>



 </div>
</template>

<script>
import topNav from '../components/bottomNav/topNav.vue'
import { gettopay } from '../utils/api'
import list from '@/components/list/list'
export default {
  components: { topNav,},
  name: 'topay',
  data() { 
    return {
      usertoken:{},
      payArray:[]
    }
  },
  created() {

    this.usertoken = localStorage.getItem('token')
    gettopay(this.usertoken).then(res=>{
      this.payArray = res.data.goodsMap
      console.log( res.data.goodsMap);
    })

  },
  methods:{

  },
 }
</script>

<style lang="scss" scoped>
.topay{
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: scroll;
  padding: 0.8rem 0.1rem;
}
.head{
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
}
.list {
  width: 100%;
  height: 2.6rem;
  padding: 0.15rem;
  box-sizing: border-box;
  display: flex;
  background-color: white;
  .list-img {
    width: 2.3rem;
    height: 2.3rem;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .list-txt {
    width: calc(100% - 2.1rem);
    margin-left: 0.2rem;
    height: 2.3rem;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    font-size: 0.28rem;
    ul {
      width: 70%;
      height: 1.43rem;
      display: flex;
      align-items: center;
      // justify-content: space-around;
      li{
          margin-right: 0.5rem;
          font-size: 0.24rem;
          text-align: center;
          p{
            margin-top: 0.15rem;
          }
      }
    }
  }
}
</style>